import threading

lock = threading.Lock()
# lock.acquire()
# lock.release()
# lock.acquire(timeout=1)